package com.kaishengit.entity;

public class CarItem {

	private Prod prod;
	private int num;
	private float total;
	
	public Prod getProd() {
		return prod;
	}
	public void setProd(Prod prod) {
		this.prod = prod;
	}
	public int getNum() {
		return num;
	}
	public void setNum(int num) {
		this.num = num;
		this.total = this.num * this.prod.getPrice();
	}
	public float getTotal() {
		return total;
	}

	
	
}
